package cn.ranko.api.service;

import cn.ranko.api.mapper.DemoMapper;
import cn.ranko.api.model.Demo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by zhujun on 2016/8/11.
 */
@Service
public class DemoService {

    @Autowired
    DemoMapper demoMapper;

    public Demo selectDB() {
        return demoMapper.selectByPrimaryKey(1);
    }
}
